# Picom configuration file

# Backend to use
backend = "glx";
vsync = true;
# GLX backend options
glx-no-stencil = true;
glx-no-rebind-pixmap = true;

# Blur method and background blur settings
blur-method = "dual_kawase";
blur-size = 12;
blur-background = true;
blur-background-frame = true;
blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'",
    "_GTK_FRAME_EXTENTS@:c",  # Adjusted for forked version
    "class_g = 'maim'"
];

# Transition settings
transition = true;
transition-offset = 20;
transition-direction = "smart-x";
transition-timing-function = "ease-out-cubic";
transition-step = 0.028;

# Shadow settings
shadow = true;
shadow-radius = 10;  # Original setting
shadow-offset-x = -10;  # Original setting
shadow-offset-y = -10;  # Original setting
shadow-opacity = 0.7;

# Fading settings
fading = true;
fade-in-step = 0.1;
fade-out-step = 0.1;

# Opacity settings using wintype options
wintypes:
{
    tooltip = { opacity = 0.75; fade = true; shadow = true; };
    popup_menu = { opacity = 0.8; shadow = false; };
    menu = { shadow = false; };
    dropdown_menu = { opacity = 0.8; shadow = false; };
    st-256color = { opacity = 0.9; blur-background = true; };
    Rofi = { shadow = false; }
};

# General settings
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
resize-damage = 1;

# Log level
log-level = "warn";

# Opacity settings for windows
inactive-opacity = 0.9;
active-opacity = 1.0;
frame-opacity = 1.0;  # Original setting

# Opacity settings for windows
#opacity-rule = [
#   "95:class_g = 'st-256color'",
#    "95:class_g = 'dwm'"
#];
corner-radius = 14;
